public class Main1 {

}

class Dog extends Animal{
    void Bark(){
        System.out.println(name + "汪汪汪~~~");
    }
}

class Cat extends Animal{
    void mew(){
        System.out.println(name + "喵喵喵~~~");
    }
}

//子类 extends 父类
class Bird extends Animal{

    void fly(){
        System.out.println(name + "飞");
    }


}

class Animal{
    String name;
    int age;
    float weight;

    public void eat(){
        System.out.println(name + "正在吃饭");
    }

    public void sleep() {
        System.out.println(name + "正在睡觉");
    }
}